<?php
if(!defined('IN_SONG')) exit('No direct script access allowed');  
/**
 * Class Test Model
 * 
 * @package         Model
 * @subpackage      Test
 * @version         0.1
 * @copyright       Song (c) 2011
 */ 
class User extends Model
{
    function __construct() { 
        parent::__construct();
    }
    
    public function checkLogin($username = '', $password = ''){  
        if($username == '' || $password == ''){
            return 'NOT_VALID';
        }
        return $this->selectOne('users', '*', 'username = "'. $username .'"');
    }
}  
?>
